package com.pktechan.api.enumeration;

/**
 * Created by qx.zhangbj02320 on 2018/5/24.
 */
public enum IdCardVerificationResultEnum {
    SUCCESS("0", "认证通过");

    private String code;
    private String name;

    public static String getIdCardVerificationResultName(String code) {
        for (IdCardVerificationResultEnum idCardVerificationResultEnum : IdCardVerificationResultEnum.values()) {
            if (idCardVerificationResultEnum.getCode().equals(code)) {
                return idCardVerificationResultEnum.name;
            }
        }
        return null;
    }

    IdCardVerificationResultEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
